<{include file="ucenter/weixin/addon/block/header.html"}>
<link rel="stylesheet" type="text/css" href="%THEME%/weixin/coupon/static/css/Coupon.css?201150408">
<body style="background:#f32e35;">
<div class="voucherPage">
	<img src="%THEME%/weixin/coupon/static/img/coupon_img1.png" width="100%" height="" />
    <div class="voucherPage_cont">
    	<div class="voucherPage_tab">
            <ul>
                <li class="voucherPage_tab_list on"><a href="javascript:;">未领取</a></li>
                <li class="voucherPage_tab_list"><a href="javascript:;">未使用</a></li>
                <li class="voucherPage_tab_list"><a href="javascript:;">已使用</a></li>
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    <div class="voucherPage_list_box">
        <div class="voucherPage_list" style="display:block;">
            <ul>
            	 <{foreach $items as $item}>
                    
                        <{if $item.ltime<$time}>
                         <li class="list grey">
                        	 <div class="fl img"><img src="%THEME%/weixin/coupon/static/img/coupon_img3.png" /></div>
                        <{else}>
                         <li class="list">
                        	<div class="fl img"><img src="%THEME%/weixin/coupon/static/img/coupon_img2.png" /></div>
                        <{/if}>
                        <div class="wz">
                            <big><{$item.end_tips}>元</big>
                            <p><{$item.use_tips}></p>
                            <p class="time">有效期至：<{$item.ltime|format:'Y-m-d'}></p>
                           
                            <{if $item.ltime<$time}>
                                <a class="butn">已过期</a>
                            <{else}>
                                <a href="<{link ctl='weixin/coupon:detail' arg0=$item.coupon_id}>" class="butn">立即领取</a>
                            <{/if}>
                        </div>
                        <div class="clear"></div>
                    </li>
                <{/foreach}>
            </ul>
        </div>
        <div class="voucherPage_list">
            <ul>
                 <{foreach $list2 as $item}>
                 <{if $items[$item.coupon].ltime<$time}>
                   <li class="list grey">
                        <div class="fl img"><img src="%THEME%/weixin/coupon/static/img/coupon_img3.png" /></div>
                 <{else}>
                 	 <a href="<{link ctl='weixin/coupon:show' arg0=$item.sn_id}>">
                    <li class="list">
                        <div class="fl img"><img src="%THEME%/weixin/coupon/static/img/coupon_img2.png" /></div>
                 <{/if}>
                        <div class="wz">
                            <big><{$items[$item.coupon].end_tips}>元</big>
                             <p><{$items[$item.coupon].use_tips}></p>
                            <p class="time">优惠码：<{$item.sn}></p>
                           
                            <{if $items[$item.coupon].ltime<$time}>
                             <a class="butn">已过期</a>
                            <{else}>
                             <p class="time">过期时间：<{$items[$item.coupon].ltime|format:'Y-m-d'}></p>
                            <{/if}>
                        </div>
                        <div class="clear"></div>
                    </li>
                   	 <{if $items[$item.coupon].ltime<$time}>
                   
                     <{else}>
                        </a>
                     <{/if}>
                  <{/foreach}>
            </ul>
        </div>
        <div class="voucherPage_list">
            <ul>
            	 <{foreach $list2 as $item}>
                    <li class="list grey">
                        <div class="fl img"><img src="%THEME%/weixin/coupon/static/img/coupon_img3.png" /></div>
                        <div class="wz">
                            <big><{$items[$item.coupon].end_tips}>元</big>
                             <p><{$items[$item.coupon].use_tips}></p>
                            <p class="time">优惠码：<{$item.sn}></p>
                             <p class="time">过期时间：<{$items[$item.coupon].ltime|format:'Y-m-d'}></p>
                        </div>
                        <div class="clear"></div>
                    </li>
                  <{/foreach}>
            </ul>
        </div>
    </div>
</div>
<script>
	$(document).ready(function(e) {	
		$('.voucherPage_tab_list').each(function (e) {
			$(this).click(function(){
				$('.voucherPage_tab_list').removeClass("on");
				$(this).addClass("on");
				$(".voucherPage_list_box .voucherPage_list").each(function(i){
					if(e==i){
						$(".voucherPage_list_box .voucherPage_list").hide();
						$(this).show();
					}
					else{
						$(this).hide();
					}
				});
			});
		});
	});
</script>
<div class="footer_copy" style="font-size: 14px; line-height: 40px; color: #fff; text-align: center; margin: 20px 0 0; background-color: #6c6c6c;">&copy;<{$CONFIG.site.title}></div>
</body>
</html>